<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>管理</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <link rel="stylesheet" href="/static/libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/libs/dropzone/dropzone.css">
    <script src="/static/libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="/static/js/underscore-min.js"></script>
    <script src="/static/libs/dropzone/dropzone.js"></script>
    <script src="/static/js/uuid.js"></script>
    <script src="/static/js/cms/manage-topic.js"></script>
    <style>
        .container {
            max-width: 970px;
        }

        .index-img {
            max-width: 100%;
        }
    </style>
</head>
<body>
<header class="navbar navbar-default navbar-static-top" id="top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar"
                    aria-controls="bs-navbar" aria-expanded="false">
                <span class="sr-only">展开/收起</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand">石头人</a>
        </div>
        <nav id="bs-navbar" class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                    <a href="/cms/topic">话题</a>
                </li>
                <li>
                    <a href="/cms/topic/gallery">热门话题</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <a href="#">好帅的程序员</a>
                </li>
            </ul>
        </nav>
    </div>
</header>
<div class="container">
    <div class="panel panel-default">
        <div class="panel-heading">新话题</div>
        <div class="panel-body">
            <div class="new-topic">
                <div class="form-group">
                    <label for="new-topic-location">省市：</label>
                    <select id="new-topic-location" class="form-control">
                    </select>
                </div>
                <div class="form-group">
                    <label for="new-topic-title">标题：</label>
                    <input id="new-topic-title" type="text" class="form-control" placeholder="请输入标题">
                </div>
                <div class="form-group">
                    <label for="new-topic-content">描述：</label>
                    <textarea id="new-topic-content" class="form-control" placeholder="请输入内容"></textarea>
                </div>
                <!--<div class="has-success">-->
                <!--<div class="checkbox">-->
                <!--<label>-->
                <!--<input type="checkbox" id="new-topic-hot">-->
                <!--加入精选-->
                <!--</label>-->
                <!--</div>-->
                <!--</div>-->
                <div class="uploader">
                    <form action="#" id="drop" class="dropzone">
                    </form>
                </div>

                <button type="button" class="btn nt-submit">提交</button>
            </div>
        </div>
    </div>
</div>

<div class="container">
    <select id="show-provid">
    </select>
</div>

<div class="container show-container">

</div>

<div class="container">
    <button type="button" class="more-topic">更多</button>
</div>

<script type="text/template" id="topic-manage-template">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">标题：<%- title %></h3>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-md-8">id：<%- topicid %></div>
                <div class="col-md-4">频道：<%- channel %></div>
            </div>
            <div>
                描述：<%- summary %>
            </div>
            <div>
                <a href="#" class="show-img">显示图片</a>
            </div>
            <div>
                <img class="index-img" style="display: none" data-src="<%- imglink %>">
            </div>
            <div>
                热度: <span class="status"><span class="text-success"><%- hot %></span></span>
            </div>
        </div>
        <div class="panel-footer">
            <a href="/cms/topic/note?topicid=<%- topicid %>" class="">查看note</a>
        </div>
    </div>
</script>
</body>
</html>
